<template>
  <div class="all">
    <van-nav-bar class="head" title="会员中心" left-text="" />
    <div class="header">
      <van-row>
        <van-col span="6"
          ><van-image
            round
            src="https://img01.yzcdn.cn/vant/cat.jpeg"
            class="image"
        /></van-col>
        <van-col span="16">
          <p class="name">任同学^^^Andy</p>
          <p class="title">铜牌大使</p>
        </van-col>
        <van-col span="2">
          <van-button
            icon="setting"
            type="info"
            to="EditData"
            class="btn"
            color="rgba(42, 131, 78, 1)"
          />
        </van-col>
      </van-row>
      <div class="steps">
        <van-row>
          <van-col span="3.5" v-for="(item, index) in list" :key="index">
            <p class="first">{{ item.date }}</p>
            <div class="step">
              <van-col :span="8"><van-divider /></van-col>
              <van-col :span="8" class="step_center">
                <div class="round"></div>
                <p class="second">{{ item.value }}</p>
              </van-col>
              <van-col :span="8"><van-divider /></van-col>
            </div>
          </van-col>
        </van-row>
      </div>
      <van-row>
        <van-col :span="8"></van-col>
        <van-col :span="8" class="check">
          <van-icon name="checked" size="19" />
          <span>今日你已签到1次</span>
        </van-col>
        <van-col :span="8"></van-col>
      </van-row>
    </div>

    <div class="follow">
      <van-image src="" />
      <p>我的关注</p>
    </div>
    <div class="release">
      <van-image src="" />
      <p>我的发布</p>
    </div>

    <div class="table">
      <van-cell-group v-for="(item, index) in tableData" :key="index">
        <van-cell :title="item.title" is-link :to="item.to" />
      </van-cell-group>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
import Footer from '../../components/Footer/footer.vue';
export default {
  components: { Footer },
  data() {
    return {
      list: [
        {
          date: "第1天",
          value: "+5",
        },
        {
          date: "第2天",
          value: "+5",
        },
        {
          date: "第3天",
          value: "+10",
        },
        {
          date: "第4天",
          value: "+5",
        },
        {
          date: "第5天",
          value: "+5",
        },
        {
          date: "第6天",
          value: "+5",
        },
        {
          date: "第7天",
          value: "+10",
        },
      ],
      tableData: [
        {
          title: "基础资料",
          to: "EditData",
        },
        {
          title: "积分详细",
          to: "Integral",
        },
        {
          title: "我的助力",
          to: "Help",
        },
        {
          title: "优选投票",
          to: "Vote",
        },
        {
          title: "反馈结果",
          to: "Feedback",
        },
      ],
    };
  },
};
</script>

<style scoped lang='less'>
.all {
  background-color: rgba(245, 245, 245, 1);
  padding-top: 66px;
  padding-bottom: 107px;
  .head {
    width: 100%;
    height: 51px;
    color: rgba(80, 80, 80, 1);
    background-color: rgba(239, 239, 239, 1);
    position: fixed;
    top: 0;
  }
  /deep/.van-nav-bar .van-icon {
    color: rgba(153, 153, 153, 1);
  }
  /deep/.van-nav-bar__title {
    color: rgba(42, 131, 78, 1);
    font-size: 18px;
  }
  .header {
    width: 345px;
    height: 187px;
    background-color: rgba(42, 131, 78, 1);
    border-radius: 8px;
    font-size: 14px;
    margin: 0 auto;

    .image {
      width: 54px;
      height: 54px;
      padding-top: 16px;
      padding-left: 18px;
    }

    p {
      color: #fff;
      &:nth-child(1) {
        font-size: 16px;
        margin-bottom: 5px;
      }
      &:nth-child(2) {
        font-size: 12px;
        margin: 0;
      }
    }

    .btn {
      width: 18px;
      height: 18px;
      padding-top: 20px;
      margin-left: -8px;
    }

    .steps {
      margin-top: 10px;
      padding-left: 20px;
      width: 300px;
      height: 49px;
      .first {
        font-size: 10px;
        padding-left: 5px;
      }
      .step {
        width: 42px;
        height: 34px;
        margin-top: -10px;
        .step_center {
          font-size: 10px;
          padding-top: 10px;
          padding-left: 2px;

          .second {
            margin-top: 5px;
            margin-left: -2px;
          }
          .round {
            width: 12px;
            height: 12px;
            background-color: orange;
            border-radius: 50%;
          }
        }
      }
    }

    .check {
      color: #fff;
      font-size: 10px;
      width: 131px;
      height: 30px;
      padding-top: 10px;
      span {
        margin-left: 7px;
        padding-bottom: 3px;
      }
    }
  }
  .follow {
    width: 56px;
    height: 49px;
    padding-left: 41px;
    padding-top: 15px;
    text-align: center;
    .van-image {
      width: 24px;
      height: 24px;
    }
    p {
      width: 56px;
      height: 21px;
      font-size: 14px;
      margin: 0;
    }
  }
  .release {
    padding-left: 137px;
    margin-top: -49px;
    width: 56px;
    height: 49px;
    text-align: center;
    font-size: 14px;
    .van-image {
      width: 24px;
      height: 24px;
    }
    p {
      width: 56px;
      height: 21px;
      font-size: 14px;
      margin: 0;
    }
  }

  .table {
    margin-top: 23px;
    width: 100%;
    .van-cell-group {
      font-size: 14px;
      padding-left: 24px;
      box-sizing: border-box;
      .van-cell {
        font-size: 14px;
      }
    }
  }
}
</style>